package com.authine.cloudpivot.ext.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wangning
 */

@Getter
@AllArgsConstructor
public enum OrderTimeRangeEnum {

    GREATER_DAY(0,"7天以外"),
    LESS_DAY(1,"7天以内");

    private Integer code;
    private String desc;

    public static boolean checkGreater(Integer code){
        if (OrderTimeRangeEnum.GREATER_DAY.getCode().equals(code)){
            return true;
        }
        return false;
    }
}
